package com.cdtye.itps.cms.mapper.warn;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cdtye.itps.cms.dao.warn.entity.JcjcWarnInformation;
import com.cdtye.itps.cms.dao.warn.vo.JcjcWarnInformationVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface JcjcWarnInformationMapper extends BaseMapper<JcjcWarnInformation> {
    /**
     * 获取信息发布类型
     */
    List<Map<String,Object>> getWarnType();

    /**
     * 自定义查询
     */
    IPage<JcjcWarnInformation> getAll(Page page, @Param("model") JcjcWarnInformationVo jcjcWarnInformationVo);

}
